<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/tld/sitemesh-decorator.tld" prefix="decorator"%>
<%@ page import="com.guinea.core.acegi.UserDetailsImpl,org.acegisecurity.GrantedAuthority,com.guinea.core.utils.StringUtils" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>上海大众 - 斯柯达经销商招募 - <decorator:title default="首页" /></title>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="Cache-Control" content="no-store" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<link rel="stylesheet" href="../../css/reset-fonts-grids.css" type="text/css">
		<link rel="stylesheet" href="../../css/base.css" type="text/css">
		<script src="../../js/base.js" type="text/javascript"></script>
		<style type="text/css">
#custom-doc { 
width:900px;margin:auto; 
text-align:left; 
padding:0px 50px;
}
#menu{
    float: left;
    height: 22px;
    padding: 22px 50px 0px;
    position: relative;
    z-index: 1000;
    list-style: none outside none;
}
#menu li{
	background:url("../../images/loginbar_line.jpg") no-repeat scroll right 2px transparent;
	float:left;
}
#menu a {
    color: #555555;
    display: block;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0 9px;
    text-align: center;
    text-decoration:none;
}
.visitor {
	padding:60px 0px 0px 0px;
	color: #727171;
	height: 20px;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 2;
}
.visitor a{text-decoration:none; color:#666;}
		</style>
		<decorator:head />
	</head>
	<body>
		<div id="custom-doc" class="yui-t7">
			<div id="hd" style="margin:0px -50px;height:144px;background:url(../../images/bg_top_grey.jpg) repeat-x scroll center 0 transparent;">
				<div class="visitor">
					<div class="passport-entry" style="float:right;height:20px;line-height:18px;padding:0px 200px 0px 0px;text-align:right;">
					<logic:empty name="ACEGI_SECURITY_CONTEXT" scope="session">
						<a href="<c:url value='/login.jsp'/>">登录</a>&nbsp;&nbsp;<a href="<c:url value='/site/overview/regist.do'/>">注册</a>
					</logic:empty>
					<logic:notEmpty name="ACEGI_SECURITY_CONTEXT" scope="session">
						<%
						UserDetailsImpl u =com.guinea.core.utils.CommonUtils.getCurrentUser(pageContext);
						if(u!=null){
							out.print(u.getOtherName());
						}
						%>
						, 欢迎您！<a href="<c:url value='/j_acegi_logout' />">退出</a>
						<%
						if(u != null){
							GrantedAuthority[] as = u.getAuthorities();
							for (int i = 0; i < as.length; i++) {
								String a = as[i].getAuthority();
								if (a == null)
									continue;
								
								if (StringUtils.contains(a, "role_recruit_") || StringUtils.contains(a, "admin")){
%>
&nbsp;&nbsp;<a href="<c:url value='/console/recruit/index.do' />">进入后台</a>
<%
								}
							}
						}
%>
					</logic:notEmpty>
					</div>
				</div>
				<ul id="menu">
					<li><a id="menu0" href="../index.jsp">首页</a></li>
					<li><a id="menu1" href="../overview/volkswagen.jsp">上海大众简介</a></li>
					<li><a id="menu2" href="../overview/skoda.jsp">斯柯达简介</a></li>
					<li><a id="menu3" href="../overview/policy.jsp">政策支持</a></li>
					<li><a id="menu4" href="../overview/conditions.jsp">申请条件</a></li>
					<li><a id="menu5" href="../overview/town.do?method=list">热点加盟城市</a></li>
					<li><a id="menu6" href="../overview/flow.jsp">申请流程</a></li>
					<li><a id="menu7" href="../user/apply.do?method=declare">在线申请</a></li>
					<li><a id="menu8" href="../user/apply.do?method=list">申请状态查询</a></li>
				</ul>
			</div>
			<div id="bd" style="background-color:#8CC1E6;padding-left:50px">
				<div class="yui-g">
					<div style="color:#1b1b1b;line-height:18px;">
						<div style="z-index:99;">
							<div id="subTitle" style="width:100%;height:20px;padding:15px 0px 5px 0px;text-align:left;border-bottom:solid 1px #fff;font-size:16px;font-weight:bolder;">
								<decorator:title default="" />
							</div>
							<div style="width:800px;padding: 5px 50px 0px 0px;">
								<decorator:body />
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="ft">
				<div style="height:197px;">
								<p style="z-index:99;position:absolute;left:600px;">
									<br/>
									<a href="../../download/skoda_request_template.doc"><img height="30" border="0" width="291" alt="入网申请书下载" src="../../images/btn_sign.gif" /></a>
								</p>
								<img style="z-index:1;position:absolute;" width="900" src="../../images/bg_content.jpg">
				</div>
				<table style="width:100%;">
					<tr>
						<td style="width:120px;">
							&nbsp;
						</td>
						<td style="text-align:center;font-weight:bolder;font-size:16px;">
							<label>
								请拨打400-820-1111(转4)
							</label>
						</td>
						<td style="width:120px;color:#aaa;font-family:NSimSun;">
							<label>
								上海大众汽车有限公司
							</label>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</body>
	<script type="text/javascript">
			function changeTitle(){
				var title = '<decorator:title default="" />';
				var num = 0;
				if(title == "") num = 0;
				if(title == "上海大众简介") num = 1;
				if(title == "斯柯达简介") num = 2;
				if(title == "政策支持") num = 3;
				if(title == "申请条件") num = 4;
				if(title == "热点加盟城市") num = 5;
				if(title == "申请流程") num = 6;
				if(title == "在线申请") num = 7;
				if(title == "申请状态查询") num = 8;
				for(var i = 1;i < 9 ;i++){
					var m = document.getElementById("menu" + i);
					if(m) m.style.color = "#000";
				}
				m = document.getElementById("menu" + num);
				if(m) m.style.color = "#D87622";
			}
		changeTitle();
	</script>
</html>
